.home-page {
	// padding: 10px;
	background-color: #F2F3F8;
	padding-bottom: 55rpx;

	.top-function {
		// width: 750rpx;
		// height: 433rpx;
		background: #FFFFFF;
		border-radius: 0rpx 0rpx 26rpx 26rpx;
		display: flex;
		margin-bottom: 20rpx;
		padding: 29rpx 22rpx 27rpx 31rpx;

		.function-row1 {
			display: flex;
			flex-direction: column;
			margin-right: 21rpx;


			.function-item {
				overflow: hidden;
				margin-bottom: 12rpx;
			}

			.function-item:last-child {
				margin-bottom: 0;
			}
		}

		.function-row2 {
			display: flex;
			flex-direction: column;


			.function-item {
				overflow: hidden;
				margin-bottom: 8rpx;
			}

			.function-item:last-child {
				margin-bottom: 0;
			}
		}
	}

	.viewed-info {
		display: flex;
		align-items: center;
		margin-bottom: 15px;

		.viewed-title {
			font-size: 14px;
			color: #333;
			margin-right: 10px;
		}

		.avatar-list {
			display: flex;
			gap: 5px;

			.avatar {
				width: 30px;
				height: 30px;
				border-radius: 50%;
			}
		}
	}

	.tab-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background: linear-gradient(0deg, #F2F3F8 0%, #FFFFFF 56.00000000000001%);
		border-radius: 35rpx 35rpx 0rpx 0rpx;
		padding: 40rpx 36rpx;
		// height: 130rpx;
		margin-bottom: 1rpx;

		.tab-item-container {
			display: flex;
			align-items: center;
			justify-content: center;


			.tab-item {
				font-family: Source Han Sans CN;
				font-weight: 400;
				font-size: 32rpx;
				color: #888B9A;
				line-height: 26rpx;

				margin-right: 60rpx;

				display: flex;
				align-items: center;
				justify-content: center;
				position: relative;

				&.active {

					font-weight: 500;
					font-size: 36rpx;
					color: #0E1C37;

					&::after {
						content: '';
						position: absolute;
						bottom: -32rpx;
						left: 50%;
						transform: translateX(-50%);
						width: 68rpx;
						height: 7rpx;
						background: #BEFF32;
						border-radius: 0rpx 5rpx 5rpx 0rpx;
					}
				}
			}
		}

		.sort-container {
			position: relative;

			.sort-btn {
				display: flex;
				align-items: center;
				justify-content: center;
				font-family: Source Han Sans CN;
				font-weight: 400;
				font-size: 22rpx;
				color: #888B9A;
				line-height: 26rpx;
				background: #EEF2F3;
				border-radius: 26rpx;
				padding: 0 20rpx;
				height: 50rpx;
				gap: 8rpx;

				&.active {
					background: #E9FEDD;
					border-radius: 26rpx;
				}

			}

			// 排序下拉菜单样式 - 参考index页面样式
			.dropdown-menu {
				position: absolute;
				top: 75rpx;
				right: 0;
				width: 158rpx;
				background: #FFFFFF;
				border-radius: 16rpx;
				z-index: 99;
				box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);

				&::before {
						content: '';
						position: absolute;
						top: -8rpx;
						right: 25rpx;
						width: 0;
						height: 0;
						border-left: 8rpx solid transparent;
						border-right: 8rpx solid transparent;
						border-bottom: 8rpx solid #FFFFFF;
						z-index: 100;
					}

				>view {
					display: flex;
					align-items: center;
					justify-content: space-between;
					padding: 23rpx 20rpx 24rpx 19rpx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					font-size: 22rpx;
					color: #0E1C37;
					line-height: 26rpx;
					position: relative;

					// &:not(:last-child)::after {
					// 	content: '';
					// 	position: absolute;
					// 	bottom: 0;
					// 	left: 30rpx;
					// 	right: 30rpx;
					// 	height: 1rpx;
					// 	background-color: #f5f5f5;
					// }

					&.active {
						background-color: #BEFF32;
						border-radius: 16rpx;
					}

					.check-icon {
						width: 20rpx;
						height: 20rpx;
					}
				}
			}
		}


	}

	// 箭头图标
	.arrow-icon {
		width: 0;
		height: 0;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top: 5px solid #666;
		transition: transform 0.3s;
	}

	.arrow-up {
		transform: rotate(180deg);
	}



	.content-wrap {
		padding: 0 32rpx;
		background: #F2F3F8;
		min-height: calc(100vh - 433rpx - 130rpx);

		.friend-item {
			padding: 30rpx;
			border-bottom: 1rpx solid #f5f5f5;
			background: #FFFFFF;
			border-radius: 26rpx;
			margin-bottom: 20rpx;


			.friend-item-content {
				display: flex;
				align-items: center;



				.friend-avatar {
					width: 96rpx;
					height: 96rpx;
					border-radius: 50%;
					margin-right: 24rpx;

					position: relative;
					top: -50rpx;
				}

				.friend-info {
					flex: 1;

					.friend-name {
						font-family: Source Han Sans CN;
						font-weight: 500;
						font-size: 32rpx;
						color: #0E1C37;
						margin-bottom: 12rpx;
						line-height: 42rpx;
					}

					.friend-desc {
						font-size: 26rpx;
						color: #888B9A;
						margin-bottom: 12rpx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						line-height: 34rpx;
					}

					.friend-describe {
						font-size: 24rpx;
						color: #5A5D6B;
						margin-bottom: 16rpx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						line-height: 32rpx;
						display: -webkit-box;
						-webkit-line-clamp: 2;
						-webkit-box-orient: vertical;
						overflow: hidden;
						text-overflow: ellipsis;
						max-width: 100%;

						position: relative;
						left: -120rpx;
					}

					.friend-tags {
						display: flex;
						flex-wrap: wrap;
						gap: 12rpx;
						margin-top: 12rpx;
						position: relative;
						left: -120rpx;

						.tag {

							background: #EEF2F3;
							border-radius: 25rpx;
							padding: 8rpx 16rpx;

							max-width: 140rpx;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
							font-family: Source Han Sans CN;

							font-size: 24rpx;
							color: #888B9A;
							font-weight: 400;
							line-height: 30rpx;
						}
					}
				}


				.hi-btn {
					width: 126rpx;
					height: 60rpx;
					border: none;
					padding: 0;
					border-radius: 0;
					background: transparent;
					box-shadow: none;
					transition: all 0.3s ease;
					position: relative;
					top: -65rpx;

					&:active {
						transform: scale(0.95);
					}
				}
			}

			// 媒体滚动区域样式
			.media-scroll {
				width: 100%;
				overflow: hidden;
				margin-top: 30rpx;

				scroll-view {
					width: 100%;
					white-space: nowrap;
				}

				.media-container {
					display: flex;
					flex-direction: row;
					white-space: nowrap;
				}

				// 媒体项样式
				.media-item {
					width: 122rpx !important;
					height: 122rpx !important;
					border-radius: 16rpx;
					margin-right: 16rpx;
					background-color: #f5f5f5;
					flex-shrink: 0;
					display: inline-block;
				}

				.video-item {
					position: relative;
				}

				.media-video {
					width: 122rpx !important;
					height: 122rpx !important;
					border-radius: 16rpx;
				}

				// 播放图标的样式
				.play-icon {
					position: absolute;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
					width: 40rpx;
					height: 40rpx;
					z-index: 10;
					opacity: 1;
					filter: drop-shadow(0 2rpx 6rpx rgba(0, 0, 0, 0.3));
				}

				// 视频时长样式
				.video-duration {
					position: absolute;
					bottom: 6rpx;
					right: 6rpx;
					padding: 2rpx 6rpx;
					background-color: rgba(0, 0, 0, 0.7);
					color: white;
					font-size: 18rpx;
					border-radius: 3rpx;
					z-index: 11;
					font-weight: 500;
				}
			}
		}
	}
}

// 加载状态样式
.loading-state {
	padding: 40rpx 0;
	text-align: center;
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 100rpx 0;
	color: #888B9A;

	.empty-icon {
		width: 120rpx;
		height: 120rpx;
		margin-bottom: 20rpx;
		opacity: 0.5;
	}

	.empty-text {
		font-size: 28rpx;
		color: #888B9A;
		font-family: Source Han Sans CN;
		font-weight: 400;
		line-height: 40rpx;
	}
}

.loading-more {
	padding: 20rpx 0;
	text-align: center;
}

.no-more {
	padding: 40rpx 0;
	text-align: center;
	font-size: 24rpx;
	color: #888B9A;
}

// 在线状态指示器
.online-status {
	color: #00D449;
	font-size: 24rpx;
	margin-left: 10rpx;
}

// 距离样式
.distance {
	color: #888B9A;
	font-size: 24rpx;
	margin-left: 20rpx;
}

// 修改friend-item样式，添加在线状态支持
.friend-item {
	position: relative;

	.friend-name {
		display: flex;
		align-items: center;
	}
}